﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EasyNet.Componets.Core.Serialization
{
    public interface IXmlSerialization
    {
        string Serialize(object obj);

        string Serialize(object obj, string rootNodeName);


        T Deserialize<T>(string value) where T : new();

        T Deserialize<T>(string value, string rootNodeName) where T : new();
    }
}
